<!DOCTYPE html>
<html>
	<head>
		<meta  charset="UTF-8">
		<title>05</title>
	</head>
	<!--百度统计-->
	<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?04e828ac441acffeb4a6bc5698f79d55";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

	<body>
		<p>
			动物
		</p>
		<ul>
			<li>
				狗
			</li>
			<li>
				<b>猫</b>
			</li>
			<li>
				狮子
			</li>
		</ul>
		<p>
			单击按钮显示动物
		</p>
		<button onclick="bu()">
			单击按钮显示列表
		</button>
		<div id="menu"></div>
		<script>
			function bu() {
				var liebiao = document.getElementsByTagName("ul");
				for (var i = 0; i < liebiao.length; i++) {
					document.getElementById("menu").innerHTML += liebiao[i].innerHTML + "<br/>";

				}

			}
		</script>

	</body>
</html>
